<?php
/*! \brief
 * This is WFLangFileFactory class
 * This is a factory class that gets language xml files
 * \author Lucy Lu
 */
class WFLangFileFactory
{
    /**
     * @var instance
     */
    private static $instance;
    /**
     * @var WF
     */
    private $objFramework;
    public function __construct($objFramework){
        $this->objFramework = $objFramework;
    }
    /**
     * @return WFLangFileManager
     */
    public function getLangFileManager(){
        if(! isset(self::$instance[__FUNCTION__])){
            require_once dirname(__FILE__) . '/LangFileManager.php';
            self::$instance[__FUNCTION__] = new WFLangFileManager($this->objFramework);
        }
        return self::$instance[__FUNCTION__];
    }
}